package com.open.companymessage.company.service.impl;

import com.netflix.discovery.converters.Auto;
import com.open.companymessage.company.dao.RoleDao;
import com.open.companymessage.company.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RoleServiceImpl implements RoleService {
    @Resource
    private RoleDao roleDao;
    @Override
    public int saveRole(long userId, long roleId) {
        return roleDao.saveRole(userId,roleId);
    }
}
